// components/tab-bar/index.js
const app = getApp()

Component({
    properties: {},
    options: {},
    data: {
        sysInfo: wx.getSystemInfoSync(),
        barHeight: 0,
        height: 0
    },
    lifetimes: {
        attached() {
            const sysinfo = wx.getSystemInfoSync()
            console.log(sysinfo)
            this.setData({
                barHeight: sysinfo.statusBarHeight,
                height: sysinfo.statusBarHeight + 44
            })
        },
        detached() {

        },
    },
    methods: {}
})
